﻿using System;

namespace Esponce.QRCode
{
	public class DecodeEventArgs : EventArgs
	{
		/// <summary>
		/// Gets or sets an error that may have occurred while processing the request.
		/// </summary>
		public Exception Error
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets a message from QR Code.
		/// </summary>
		public string Content
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets a QR Code version. Values 1-40 or null.
		/// </summary>
		public int? Version
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets the error correction level.
		/// </summary>
		public QRErrorCorrection ErrorCorrection
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets a number of modules in row or column.
		/// </summary>
		public int? Dimension
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets the capacity of QR Code - maximum possible length of bytes to be stored in QR Code.
		/// </summary>
		public int? Capacity
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets length of stored content in bytes.
		/// </summary>
		public int? Length
		{
			get;
			set;
		}
	}
}
